package com.mutual.commom.pojo;
/**
 * 分页
 * @author chenshuaining
 *
 */
public class Page {

	protected int pageNo = 1;
	protected int pageSize = 10;
	protected int pageTotal = 1;
	protected int total = 0;

	/************ get set ***************/
	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getPageTotal() {
		pageTotal = total / pageSize;
		if (total % pageSize > 0)
			pageTotal++;
		return pageTotal;
	}

	public void setPageTotal(int pageTotal) {
		this.pageTotal = pageTotal;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

}
